package com.iyeed.jbpm03.demo10.mailnode.resolver;

import java.util.ArrayList;
import java.util.List;

import org.jbpm.mail.AddressResolver;

public class TestMail implements AddressResolver {

	private static final long serialVersionUID = 200983046297926776L;

	@Override
	public Object resolveAddress(String actorId) {
		if ("iyeed".equals(actorId)) {
			return "hailiang.jiang@iyeed.com";
		} else {
			List<String> mailList = new ArrayList<String>();
			mailList.add("hailiang.jiang@iyeed.com");
			mailList.add("172389053@qq.com");
			return mailList;
		}
	}

}
